<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


Route::get('/index.php', function () {
    return 'hahahaha';
});



Route::group([
    'namespace' => 'User'
], function () {
    Route::get('/get_sms_code', ['uses' => 'UserBaseController@get_sms_code', 'as' => 'get_sms_code']);#获取code
    Route::get('/check_sms_code', ['uses' => 'UserBaseController@check_sms_code', 'as' => 'check_sms_code']);#检测验证码
    Route::post('/login', ['uses' => 'UserBaseController@do_login', 'as' => 'login']);#
    Route::post('/reg', ['uses' => 'UserBaseController@do_reg', 'as' => 'reg']);#
    Route::post('/forget_password', ['uses' => 'UserBaseController@forget_password', 'as' => 'forget_password']);#忘记密码
});










